<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" href="../../app/js/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../app/css/footer.css"/>
		<link rel="stylesheet" href="../../app/css/lystyle.css" />
		<link rel="stylesheet" type="text/css" href="../../app/css/backstage.css"/>
		
		<style type="text/css">
			/*修改底部字体颜色*/
			.foot:nth-child(2){
				color: #e83023;
			}
			#wrap div#content{
				padding-top: 1.2rem;
			}	

		</style>
		<script src="../../app/js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="wrap">
			<div id="main">
				<div id="header">
					<a id="headImg" href="javascript:history.go(-1)"><img class="headImg" src="../../app/images/12.png"/></a>
					<p id="headTitle">交易详情</p>
				</div>
				<div id="content">	
					<ul class="ly-li12">
						<li><a><span>订单时间：<span id="time">暂无</span></span></a></li>
						<li><a><span>商家：<span id="name"></span>暂无</span></a></li>
						<li><a><span>一级分类：<span id="fenlei1">暂无</span></span></a></li>
						<li><a><span>二级分类：<span id="fenlei2">暂无</span></span></a></li>
						<li><a><span>商家区域：<span id="address">暂无</span></span></a></li>
						<li><a><span>销售额：<span id="xiaoshou">暂无</span></span></a></li>
						<li><a><span>我的分润：<span id="fenrun">暂无</span></span></a></li>
				</ul>	
				</div>
			</div>

		</div>

	</body>
	<script src="../../app/js/jquery-2.2.3.min.js"></script>
	<script type="text/javascript" src="../../app/js/bootstrap-3.3.7-dist/js/bootstrap.min.js" ></script>
	<script src="../../app/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
	//登录判断
//		console.log($.cookie('tokenRh'));
//		if(!$.cookie('tokenRh')) { //当参数不为空符合条件
//			window.location.href = "../../app/view/login/login/login.html";
//		}
		//获取订单信息
		$(function(){
			//获取订单信息
			var str=window.location.href;
			var siid=str.toString().split('=')[1];
			console.log(siid);
			$.ajax({
				type:"get",
				url:"http://47.104.13.109/mall-service/searchsiIds",
				async:true,
				data:{
					"pageNum":"1",
					"pageSize":"10",
					"siId":siid
				},
				success:function(data){
					console.log(data);
					$('#time').html(data.list[0].orderDate);
					$('#name').html(data.list[0].shopName);
					$('#fenlei1').html(data.list[0].classifyOne);
					$('#fenlei2').html(data.list[0].classifyTwo);
					$('#fenrun').html(data.list[0].agencyRatio);
					$('#xiaoshou').html(data.list[0].orderMoney);
				}
			});
			$.ajax({
				type:"get",
				url:"http://47.104.13.109/mall-service/shop/search?shopId="+siid,
				async:true,
				success:function(data){
					console.log(data);
					$('#address').html(data.shopAdd);
				}
			});
			
			
		})
	</script>
</html>